Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1. 문제 번호
Resolve: {#이슈번호}
2. 문제 정의
3. 알고리즘 설계
trial 1 브루트 포스 -> 시간 초과로 실패
trail 2 dp -> 성공
4. 최악 수행 시간 복잡도
trial 1
입력 읽기: O(n)
이중 루프와 부분 합 계산: O(n^2)
=> O(n^2)
trial 2
입력 읽기: O(n)
DP 배열 초기화: O(n)
DP 배열 채우기: O(n)
최대 값 찾기: O(n)
=> O(n)
5. 특이 사항 (Optional)